<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ include file="/common/main.jsp" %>
<!DOCTYPE html>
<html lang="en" class="app">
<head>  
  <meta charset="utf-8" />
  <title>上传视频</title>
  <meta name="description" content="app, web app, responsive, admin dashboard, admin, flat, flat ui, ui kit, off screen nav" />
  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1" />
  <link rel="stylesheet" href="${V_PATH}/static/js/jPlayer/jplayer.flat.css" type="text/css" />
  <link rel="stylesheet" href="${V_PATH}/static/css/bootstrap.css" type="text/css" />
  <link rel="stylesheet" href="${V_PATH}/static/css/animate.css" type="text/css" />
  <link rel="stylesheet" href="${V_PATH}/static/css/font-awesome.min.css" type="text/css" />
  <link rel="stylesheet" href="${V_PATH}/static/css/simple-line-icons.css" type="text/css" />
  <link rel="stylesheet" href="${V_PATH}/static/css/font.css" type="text/css" />
  <link rel="stylesheet" href="${V_PATH}/static/css/app.css" type="text/css" />  
    <!--[if lt IE 9]>
    <script src="${V_PATH}/static/js/ie/html5shiv.js"></script>
    <script src="${V_PATH}/static/js/ie/respond.min.js"></script>
    <script src="${V_PATH}/static/js/ie/excanvas.js"></script>
  <![endif]-->
</head>
<body class="">
  <section class="vbox">
     <section class="vbox">
            <section class="scrollable padder">
              <section class="panel panel-default">
                <header class="panel-heading">
                  	视频列表
                </header>
                <div class="row wrapper">
                  <div class="col-sm-5 m-b-xs">
                    <button class="btn btn-sm btn-default"onclick="uploadVideo()">上传</button>                
                  </div>
                  <!-- <div class="col-sm-3">
                    <div class="input-group">
                      <input type="text" class="input-sm form-control" placeholder="Search">
                      <span class="input-group-btn">
                        <button class="btn btn-sm btn-default" type="button">Go!</button>
                      </span>
                    </div>
                  </div> -->
                </div>
                <div class="table-responsive">
                  <table class="table table-striped b-t b-light">
                    <thead>
                      <tr>
                        <th class="th-sortable">名称
                        </th>
                        <th>地址</th>
                        <th>作者</th>
                        <th>时间</th>
                        <th style="width:30px;"></th>
                      </tr>
                    </thead>
                    <tbody>
                      <c:forEach var="video" items="${AUTHORITY_VIDEO_LIST }">
                      	<tr>
                        <td>${video.name }</td>
                        <td style="overflow: hidden;text-overflow:ellipsis;white-space: nowrap;max-width: 350px">${video.videoUri }</td>
                        <td>${video.author }</td>
                        <td>${video.createdate }</td>
                        <td>
                          <a href="javascript:;" onclick="delVideo('${video.id }')" ><i class="fa fa-check text-success text-active active"></i><i class="fa fa-times text-danger text"></i></a>
                        </td>
                      </tr>
                      </c:forEach>
                    </tbody>
                  </table>
                </div>
              </section>
            </section>
          </section>
  </section>
  <script src="${V_PATH}/static/js/app.plugin.js"></script>
  <script type="text/javascript" src="${V_PATH}/static/js/jPlayer/jquery.jplayer.min.js"></script>
  <script type="text/javascript" src="${V_PATH}/static/js/jPlayer/add-on/jplayer.playlist.min.js"></script>
  <script type="text/javascript" src="${V_PATH}/static/js/jPlayer/demo.js"></script>
  <script type="text/javascript" src="${V_PATH}/static/authority/authority.js"></script>

</body>
</html>